-- GENERATED SPELL FOR [Deathclasp] --


function spell0_15196(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(18670,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15196', 606, 1)
end

function spell1_15196(pUnit, Event) --@Paralyzing Poison,n/a--
pUnit:FullCastSpellOnTarget(3609,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15196', 8325, 1)
end

function Sorts_15196(pUnit, Event)
local choix_sorts_15196 = math.random(0, 1)
if choix_sorts_15196 == 0 then
pUnit:RegisterEvent('spell0_15196', 1, 1)
end
if choix_sorts_15196 == 1 then
pUnit:RegisterEvent('spell1_15196', 1, 1)
end
end

function mob15196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15196', math.random(1500, 3000), 1)
end

function mob15196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15196, 1, 'mob15196_Action')
RegisterUnitEvent(15196, 2, 'mob15196_Leave')
RegisterUnitEvent(15196, 3, 'mob15196_Kill')
RegisterUnitEvent(15196, 4, 'mob15196_Die')
